<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
print_r($cat_detail_array);
print_r($cat_labs_array);
?>
<br><br>
分类编号：<?php
echo $cat_detail_array[0]["id"];
?>
<br>
分类名称：<?php
echo $cat_detail_array[0]["name"];
?>
<br>


<form action="<?php echo site_url("admin/catset/add_lab");
?>" method="post">

    <br>
    标签名称：<input name="labname" type="text" />
    <input name="catid" type="hidden" value="<?php echo $cat_detail_array[0]["id"];
?>" />
    <input name="" type="submit" />
</form>

<table width="337" border="1">
    <tr>
        <td>标签编号</td>
        <td>标签名称</td>
        <td>操作</td>
    </tr>
<?php
foreach ($cat_labs_array as $key => $val) {

    $delurl = site_url("admin/catset/del_lab/{$val["id"]}");
    echo " 
  <tr>
    <td>{$val["id"]}</td>
    <td>{$val["labname"]}</td>
    <td><a href=\"{$delurl}\">删除</a></td>
  </tr>";
}
?>

</table>



